import App from './App'
import { createSSRApp } from 'vue'
import * as Pinia from "pinia";
import { createUnistorage } from "./uni_modules/pinia-plugin-unistorage";
import uviewPlus from '@/uni_modules/uview-plus'
import Vant from 'vant'
import 'vant/lib/index.css';
import 'animate.css';
window.baseURL = 'http://172.18.58.97:8081'
export function createApp() {
  const app = createSSRApp(App)
  const store = Pinia.createPinia();
  store.use(createUnistorage());
  app.use(store).use(uviewPlus).use(Vant)
  return {
    app,
    Pinia
  }
}
